module.exports = app => {
  const mongoose = app.mongoose
  const { Schema } = mongoose
  const { ObjectId } = Schema

  const modelSchema = new Schema({
    name: { type: String, remark: '用户名', required: true },
  }, {
    collections: 'default',
    timestamps: true,
  })

  modelSchema.index({ name: 1 }, { unique: true })

  return mongoose.model('Default', modelSchema)
}